﻿using System;
namespace Nereus.Attributes
{
    [AttributeUsage(AttributeTargets.Property)]
    public class NPropertyAttribute : Attribute
    {
        public string Description {
            get; set;
        }

        public Type EnumType {
            get; set;
        }

        public bool NotBlank
        {
            get; set;
        }


        //public NPropertyAttribute(string description)
        //{
        //    Description = description;
        //}

        public NPropertyAttribute(Type enumType)
        {
            EnumType = enumType;
        }


        public NPropertyAttribute(string description, bool notBlank=true, Type enumType=null )
        {
            Description = description;
            EnumType = enumType;
            NotBlank = notBlank;
        }
    }
}
